static member function program in c